FROM  docker.elastic.co/elasticsearch/elasticsearch:7.3.1
MAINTAINER tian.dong <tiandong19860806@126.com>

# create user in container
RUN useradd docker -u 2000 -s /bin/bash

# set user run in command
USER docker